#include "RobotSpawnCommand.h"

RobotSpawnCommand::RobotSpawnCommand(Robot* receiver): robot(receiver)
{
}

RobotSpawnCommand::RobotSpawnCommand(const RobotSpawnCommand& rhs): GameCommand(rhs), robot(rhs.robot)
{
}

RobotSpawnCommand::~RobotSpawnCommand()
{
}

void RobotSpawnCommand::Execute()
{
	if (robot)
	{
		robot->Spawn();
	}
}

GameCommand* RobotSpawnCommand::Clone() const
{
	return new RobotSpawnCommand(*this);
}
